/* 移除默认的根元素样式，使用shadcn/ui的全局样式 */

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em hsl(var(--primary) / 0.7));
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em hsl(var(--accent) / 0.7));
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  @apply text-muted-foreground;
}

/* 自定义样式 */
.modern-card {
  @apply rounded-lg border bg-card text-card-foreground shadow-sm;
}

.loading-spinner {
  @apply animate-spin rounded-full border-2 border-muted border-t-primary;
}

.text-gradient {
  @apply bg-gradient-to-r from-primary to-primary/60 bg-clip-text text-transparent;
}

.floating-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.feature-card {
  @apply relative overflow-hidden rounded-lg border bg-card p-6 text-card-foreground shadow-sm transition-all duration-300 hover:shadow-md hover:bg-accent hover:text-accent-foreground;
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsl(var(--foreground) / 0.1), transparent);
  transition: left 0.5s;
}

.shine-effect:hover::before {
  left: 100%;
}
